<!--
 * @LastEditors: 七七
 * @Date: 2023-01-06 11:06:01
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let obj = { a: { b: { c: 1 } } }
    console.log(obj.a.b.c);

    const { a: { b: { c } } } = obj
    console.log({ c });

    let obj2 = { a: { b: 1 } }
    const { a: { b } } = obj2;
    console.log(b);

    const { a: { b: data } } = obj2
    console.log({ data });
  </script>
</body>

</html>